package com.example.spring_config.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.spring_config.bean.LayuiTree;
import com.example.spring_config.mapper.Role;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public interface RoleService extends IService<Role> {
    List<LayuiTree> getRoleByUser(String uid);

    /**
     * 根据用户id获取权限名
     * @param uid
     * @return
     */
    List<String> getRoleNameByUid(String uid);
}
